package com.thb.pay.api.payment.fallback;

import com.thb.pay.api.payment.PayChannelServiceApi;
import com.thb.pay.api.payment.vo.req.ChannelConfigPageReq;
import com.thb.pay.api.payment.vo.req.ChannelConfigReq;
import com.thb.pay.api.payment.vo.resp.PayChannelVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ChannelConfigServiceApiFallbackFactory implements FallbackFactory<PayChannelServiceApi> {


    @Override
    public PayChannelServiceApi create(Throwable throwable) {
        return new PayChannelServiceApi() {
            @Override
            public PageResult<PayChannelVo> findPage(ChannelConfigPageReq pageReq) {
                return null;
            }

            @Override
            public PayChannelVo getById(Long id) {
                return null;
            }

            @Override
            public PayChannelVo getByCode(String code) {
                return null;
            }

            @Override
            public void add(ChannelConfigReq channelConfigReq) {

            }

            @Override
            public void update(ChannelConfigReq channelConfigReq) {

            }
        };
    }
}